//
//  CoinTransModel.swift
//  Exchange
//
//  Created by 孟祥群 on 2018/6/20.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit
import ObjectMapper
class CoinTransModel: BaseModel, Mappable {
    var hasNextPage : Bool = false
    var list : [CoinListModel] = []
    var pages : Int = 0
    var total : Int = 0
    
    required init?(map: Map){}
    override init(){
        super.init()
    }
    
    func mapping(map: Map)
    {
        hasNextPage <- map["hasNextPage"]
        list <- map["list"]
        pages <- map["pages"]
        total <- map["total"]
        
    }

}

class CoinListModel: BaseModel, Mappable {
    var amount:Double = 0.00
    var amountSign = ""
    var coinCode = ""
    var createTime = ""
    var drawAdd = ""
    var handleType:Int?
    var tradeId:String = ""
    required init?(map: Map){}
    private override init(){}
    
    func mapping(map: Map)
    {
        amount <- map["amount"]
        amountSign <- map["amountSign"]
        coinCode <- map["coinCode"]
        createTime <- map["createTime"]
        drawAdd <- map["drawAdd"]
        handleType <- map["handleType"]
        tradeId <- map["tradeId"]
    }
}
